package com.bwie.controller;
import com.bwie.pojo.User;
import com.bwie.service.UserService;
import com.bwie.service.impl.UserServiceImpl;
import com.bwie.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
* (t_user)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/t_user")
@Api(tags = {"用户管理"})
public class UserController {
/**
* 服务对象
*/
    @Autowired
    private UserService userService;

    @ApiOperation("登入表单")
    @PostMapping("/getLogin")
    public R getLogin(@RequestBody User user){
        return userService.getLogin(user);
    }
}
